<?
require_once("main.php");
require_once("banner.php");
echo"
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<html>
<head>
<title>"._TITLE."</title>";
require("./includes/meta.php");
#if($wysiwyg)include("./wysiwyg/wysiwyg_header.php");

if(is_admin($user) and $wysiwyg){
echo"<script language=\"javascript\" type=\"text/javascript\" src=\"./tiny/tiny_mce.js\"></script>";
echo"<script language=\"javascript\" type=\"text/javascript\">";
echo'
tinyMCE.init({
                mode : "textareas",
                theme : "advanced",
                elements : "texte",
                language : "fr",
                convert_urls : false,
                plugins : "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable",
                theme_advanced_buttons1_add_before : "save,newdocument,separator",
                theme_advanced_buttons1_add : "fontselect,fontsizeselect",
                theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor",
                theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
                theme_advanced_buttons3_add_before : "tablecontrols,separator",
                theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
                theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops",
                theme_advanced_toolbar_location : "top",
                theme_advanced_toolbar_align : "left",
                theme_advanced_path_location : "bottom",

                content_css : "./includes/style.css",
            plugin_insertdate_dateFormat : "%Y-%m-%d",
            plugin_insertdate_timeFormat : "%H:%M:%S",
                extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",

                external_link_list_url : "tiny/example_link_list.js",
                external_image_list_url : "tiny/example_image_list.js",

                file_browser_callback : "fileBrowserCallBack",
                theme_advanced_resize_horizontal : false,
                theme_advanced_resizing : true
        });

        function fileBrowserCallBack(field_name, url, type, win) {
                // This is where you insert your custom filebrowser logic
                alert("Example of filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);

                // Insert new URL, this would normaly be done in a popup
                win.document.forms[0].elements[field_name].value = "someurl.htm";
        }
</script>';}

echo"<link rel=\"stylesheet\"  href=\"./includes/style.css\" type=\"text/css\">";
echo"<link REL=\"shortcut icon\" HREF=\"./favicon.ico\" TYPE=\"image/x-icon\">\n";
echo"</head><body>";


echo"<table width=\"850\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" align=\"center\"  bgcolor=\"white\"><tr>
    <td colspan=\"3\"><img src=\"images/logo.gif\" width=\"207\" height=\"77\"  alt=\"$sitename\"></td>
  </tr><tr>";

if(!$printable){
                  // la table du  menu
      echo"<td width=\"175\" valign=\"top\">
                  <table width=\"175\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"  style=\"margin: 2px \">

                          <tr><td>&nbsp;</td></tr>
                          <tr><td><a  href=\"index.php\" ><font class=\"btitle\">* Index</font></a></td></tr>
                          <tr>
                          <td><a href=\"bureau.php\"><font class=\"btitle\">* "._BUREAU." </font></a></td>
                          </tr>
                          <tr>
                                <td><a href=\"equipe.php\"><font class=\"btitle\">* "._LEQUIPE."</font></a></td>
                          </tr>
                          <!--<tr>
                                <td><a href=\"resultats.php\"><font class=\"btitle\">* "._RESULTATS."</font></a></td>
                          </tr>
                          <tr>
                                  <td><a href=\"calendrier.php\"><font class=\"btitle\">* "._CALENDRIER."</font></a></td>
                          </tr>-->
                          <tr>
                                <td><a href=\"info.php\"><font class=\"btitle\">* "._INFO."</font></a></td>
                          </tr>
                          <tr>
                                <td><a href=\"partenaires.php\"><font class=\"btitle\">* "._PARTENAIRES."</font></a></td>
                          </tr>
                          <tr>
                                <td><a href=\"liens.php\"><font class=\"btitle\">* "._LIENS."</font></a></td>
                          </tr>
                          <tr>
                                  <td><a href=\"galerie.php\"><font class=\"btitle\">* "._GALERIEPHOTO."</font></a></td>
                          </tr>
                          <tr>
                                  <td><a href=\"archive.php\"><font class=\"btitle\">* "._ARCHIVE."</font></a></td>
                          </tr>
                          <tr>
                                  <td><a href=\"forum.php\"><font class=\"btitle\">* Forum </font></a></td>
                          </tr>

                          ";


                          if(is_user($user)){

                          echo"<tr><td><a href=\"membres.php\"><font class=\"btitle\">* "._PROFIL."</font></a></td></tr>";

                          }
                          // de la pub
                          echo"
                          <tr>
                                  <td>$banner[2]</td>
                          </tr>";

                          if(is_admin($user)){
                          echo"<tr><td><a href=\"backup.php\"><font class=\"brtitle\">* "._BACKUP."</font></a></td></tr>";
                          echo"<tr><td><a href=\"tables.php\"><font class=\"brtitle\">* "._TABLES."</font></a></td></tr>";
                          echo"<tr><td><a href=\"cvs.php\"><font class=\"brtitle\">* "._CVS."</font></a></td></tr>";
                          echo"<tr><td><a href=\"sql.php\"><font class=\"brtitle\">* "._SQL."</font></a></td></tr>";
                          echo"<tr><td><a href=\"email.php\"><font class=\"brtitle\">* "._EMAIL."</font></a></td></tr>";
                          echo"<tr><td><a href=\"sms.php\"><font class=\"brtitle\">* "._SMS."</font></a></td></tr>";
                          echo"<tr><td><a href=\"match.php\"><font class=\"brtitle\">* "._MATCH."</font></a></td></tr>";
                          echo"<tr><td><a href=\"couleurs.php\"><font class=\"brtitle\">* "._COULEURS."</font></a></td></tr>";
                           echo"<tr><td><a href=\"test.php\"><font class=\"brtitle\">* "._TEST."</font></a></td></tr>";
                          }

                           echo"<tr><td align=\"center\"><br>
                           <a href=\"$PHP_SELF?newlang=french\" ><img src=\"images/flags/fr.gif\" width=\"30\" class=\"cadre_gris\"  height=\"15\" alt=\"French\"  title=\"French\"></a>
                           <a href=\"$PHP_SELF?newlang=danish\" ><img src=\"images/flags/dk.gif\" width=\"30\" class=\"cadre_gris\"  height=\"15\" alt=\"Danish\"  title=\"Danish\"></a>

                           <br></td>
                          </tr>
                          <tr>
                              <td align=\"left\">";


                           include("block_calendrier.php");
                           if(!is_user($user)):login();
                           else:
                           echo"<br><a href=\"$PHP_SELF?logout=1\"><font class=\"brtitle\"> "._LOGOUT."<br>[".identifiant()."]</font></a><br><br>";

                           include("block_sondage.php");
                           endif;
                           echo"</td></tr><tr><td>";
                           echo"<a href=\"rss.php?feed=rss1.0\"><img src=\"./images/rss/rss10.gif\" alt=\"rss 1.00\" align=\"middle\" border=\"0\" /></a><br>";
                           echo"<a href=\"rss.php?feed=rss2.0\"><img src=\"./images/rss/rss20.gif\" alt=\"rss 2.00\" align=\"middle\" border=\"0\" /></a><br>";
                           echo"<br><a href=\"http://fusion.google.com/add?feedurl=http://$site/rss.php?feed=rss1.0\"><img src=\"http://buttons.googlesyndication.com/fusion/add.gif\" width=\"104\" height=\"17\" border=\"0\" alt=\"Add to Google\"></a>";
                           echo"</td></tr></table></td>";
    }
  ###############################################
  echo"<td  valign=\"top\"><table width=\"468\" border=\"0\" cellpadding=\"0\" align=\"center\" ><tr><td align=\"center\"  valign=\"top\">";
  echo $banner[1]."<br><br>";
   #echo'<IFRAME name="1" height="80" width="468"  Marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no bordercolor="#000000" SRC="http://127.0.0.1/froggies/banner.php?pool=1"></IFRAME>';
?>